//
//  UIDevice.swift
//  CXBaseUtil
//
//  Created by 李旭峰 on 2021/2/26.
//

import Foundation
import UIKit

public extension UIDevice {
    
    var appVersion: String {
        return Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
    }
    
    var appBuild: String {
        return Bundle.main.infoDictionary!["CFBundleVersion"] as! String
    }
    
    var appBundleID: String {
        return Bundle.main.bundleIdentifier!
    }
    
    @objc func getAppVersion() -> String {
        return self.appVersion;
    }
    
    @objc func getAppBuild() -> String {
        return self.appBuild;
    }
    
    @objc func getBundleID() -> String {
        return self.appVersion;
    }
}
